package com.huangfuyi.home.controller;

import com.huangfuyi.home.entity.BaiduDiskTokenEntity;
import com.huangfuyi.home.service.BaiduDiskTokenService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("test")
public class TestController {

    @Autowired
    private BaiduDiskTokenService baiduDiskTokenService;

    @RequestMapping("/test")
    @ResponseBody
    public BaiduDiskTokenEntity test(){
        return baiduDiskTokenService.queryById();
    }


}
